package com.travel.common.exception;

import lombok.Data;

@Data
public class LogicException extends RuntimeException{

    protected int code;
    protected String msg;



    public LogicException(Throwable cause, String msg, int code) {
        super(cause);
        this.code = code;
        this.msg = msg;
    }

    public LogicException(String msg, int code) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Throwable fillInStackTrace() {
        return this;
    }
}